<?

//登录MYSQL数据库

$link=mysqli_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);
 

//进入BBS库

 mysqli_select_db($link,"app_formtest1");

//使用UTF-8中文编码传输数据流

mysql_query("set names 'UTF8'");

//修改空格和回车编码为HTML可识别编码

function htmtocode($content){

$content = str_replace("\n","<br>", str_replace(" ", "&nbsp;", $content));

return $content;

}

 

?>